class Settings:
    def __init__(self):
        self.screen_width = 1200  # 屏幕宽度
        self.screen_height = 800  # 屏幕高度
        self.bg_color = (230, 230, 230)  # 屏幕背景色
        self.ship_speed = 1.5  # 飞船速度
        self.ship_limit = 3  # 剩余飞船数量
        self.bullet_speed = 1.0  # 子弹速度
        self.bullet_width = 3  # 子弹宽度
        self.bullet_height = 15
        self.bullet_color = (60, 60, 60)
        self.bullets_allowed = 3  # 最大子弹数量
        self.alien_speed = 1.0  # 外星人向下移动速度
        self.fleet_drop_speed = 10  # 外星人左右横移速度
        # 1表示右移 -1表示左移
        self.fleet_direction = 1
        # 加快游戏节奏的速度
        self.speedup_scale = 1.1
        # 分数的提高速度
        self.score_scale = 1.5

    def initialize_dynamic_settings(self):
        self.ship_speed = 1.5
        self.bullet_speed = 3.0
        self.alien_speed = 1.0
        self.fleet_direction = 1
        self.alien_points = 50

    # 提高速度
    def increase_speed(self):
        self.ship_speed *= self.speedup_scale
        self.bullet_speed *= self.speedup_scale
        self.alien_speed *= self.speedup_scale
        self.alien_points = int(self.alien_points * self.score_scale)
